IsDisjointFrom Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if this set is disjoint from another set. Two sets are disjoint if no item from one set is equal to any item in the other set.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public bool IsDisjointFrom(
	Set<T> otherSet
)
Visual Basic (Declaration)
Public Function IsDisjointFrom ( _
	otherSet As Set(Of T) _
) As Boolean
Visual C++
public:
bool IsDisjointFrom (
	Set<T>^ otherSet
)

Parameters

otherSet
Set<(Of <T>)>
Set to check disjointness with.

Return Value

True if the two sets are disjoint, false otherwise.

Remarks

The answer is computed in time O(N), where N is the size of the smaller set.

Exceptions

ExceptionCondition
System..::InvalidOperationExceptionThis set and otherSet don't use the same method for comparing items.

See Also